Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require use of trailing commas at declaration site #4760

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

rli
Copy link
Contributor

@rli rli commented Aug 2, 2024

https://kotlinlang.org/docs/coding-conventions.html#trailing-commas

The Kotlin style guide encourages the use of trailing commas at the declaration site and leaves it at your discretion for the call site.

Requiring trailing commas at call site would be nice as well, but will revisit in the future

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rli rli requested review from a team as code owners August 2, 2024 18:31
@@ -436,7 +436,8 @@ class CawsConnectionProvider : GatewayConnectionProvider {
}

is GitSettings.CawsOwnedRepoSettings,
is GitSettings.NoRepo -> {
is GitSettings.NoRepo,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the correct syntax, do we want the comma here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is multi line so it makes sense

@rli rli force-pushed the rli/require-trailing-commas-declaration branch from 9452d98 to f224b7b Compare October 3, 2024 00:13
@rli rli force-pushed the rli/require-trailing-commas-declaration branch from f224b7b to c9b7809 Compare October 3, 2024 00:46
@rli rli enabled auto-merge (squash) October 3, 2024 00:52
@rli rli disabled auto-merge October 3, 2024 17:02
@rli rli merged commit c86847d into main Oct 3, 2024
11 of 15 checks passed
@rli rli deleted the rli/require-trailing-commas-declaration branch October 3, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants